//
//  WorkViewController.m
//  Utils
//
//  Created by enghou on 2018/4/12.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

#import "WorkViewController.h"
#import "WorkReportViewController.h"
#import "InfoSharingViewController.h"
#import "ServiceRecordViewController.h"
#import "ImportantAreaManipulatorViewController.h"
#import "MailBoxViewController.h"
#import "OutMailViewController.h"
#import "ProblemsHandlingViewController.h"
#import "ImportantAreaViewController.h"
#import "ImportantIndurstryViewController.h"
#import "AppealViewController.h"
@interface WorkViewController ()

@end

@implementation WorkViewController


- (IBAction)dailyReportAction:(id)sender {
    WorkReportViewController *daily = [[WorkReportViewController alloc]init];
    daily.title = @"工作日志";
    daily.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:daily animated:YES];
}

- (IBAction)serviceRecordAction:(id)sender {
    ServiceRecordViewController *service = [[ServiceRecordViewController alloc]init];
    service.title = @"服务记录";
    [self push:service];
}

- (IBAction)inMailBoxAction:(id)sender {
    MailBoxViewController *mail = [[MailBoxViewController alloc]init];
    mail.hidesBottomBarWhenPushed = YES;
    [self push:mail];
}

- (IBAction)outMailAction:(id)sender {
    OutMailViewController *outMail = [[OutMailViewController alloc]init];
    outMail.hidesBottomBarWhenPushed = YES;
    outMail.title = @"发件箱";
    [self push:outMail];
}

-(IBAction)shareInfo:(id)sender{
    InfoSharingViewController *info = [[InfoSharingViewController alloc]init];
    info.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:info animated:YES];
}

- (IBAction)problemsAction:(id)sender {
    ProblemsHandlingViewController *problem = [[ProblemsHandlingViewController alloc]init];
    problem.modelClsName = @"ProblemHandlingItemModel";
    problem.cellClass = @"ProblemHandlingCell";
    problem.type = 0;
    problem.hidesBottomBarWhenPushed = YES;
    [self push:problem];
}

- (IBAction)appealAction:(id)sender {
    AppealViewController *appeal = [[AppealViewController alloc]init];
    appeal.type = 0;
    appeal.hidesBottomBarWhenPushed = YES;
    [self push:appeal];
}

- (IBAction)importantManipulatorAction:(id)sender {
    ImportantAreaManipulatorViewController *manipulator = [[ImportantAreaManipulatorViewController alloc]init];
    manipulator.title = @"重点地区排查整治";
    [self push:manipulator];
}

- (IBAction)importAreaAction:(id)sender {
    ImportantAreaViewController *important = [[ImportantAreaViewController alloc]init];
    important.title = @"重点区域";
    [self push:important];
}

- (IBAction)importIndurstryAction:(id)sender {
    ImportantIndurstryViewController *indurstry = [[ImportantIndurstryViewController alloc]init];
    indurstry.title = @"重点行业";
    [self push:indurstry];
}


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
    switch (section) {
        case 0:
            return 0;
            break;
        default:
            return 10;
            break;
    }
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
